<%@ Control Language="C#" AutoEventWireup="true"  Codebehind="ucRoles.ascx.cs" Inherits="BaseSystem._System.UserControl.ucRoles" %>
<%@ Import Namespace="Auto.Data.Security" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"
   CssClass="mainView" OnLoad="GridView1_Load">
    
    <Columns>
        <asp:TemplateField headerstyle-Width="140px" HeaderText="<%$Resources:Base,SysID %>">
            <ItemStyle HorizontalAlign="Center" Width="120px" Wrap="False" />
            <ItemTemplate>
            <asp:Label ID="lblSysID" runat="server" Text='<%# DataBinder.Eval( Container.DataItem,SysRoles.FIELD_SysID) %>'></asp:Label>

            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField headerstyle-Width="140px" HeaderText="<%$Resources:Base,RoleID %>">
            <ItemStyle HorizontalAlign="Center" Width="120px" Wrap="False" />
            <ItemTemplate>
            <asp:Label ID="lblRoleID" runat="server" Text='<%# DataBinder.Eval( Container.DataItem,SysRoles.FIELD_RoleID) %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField headerstyle-Width="140px" HeaderText="<%$Resources:Base,RoleName %>">
            <ItemStyle Width="120px" Wrap="False" />
            <HeaderStyle HorizontalAlign="Left" />
            <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem,SysRoles.FIELD_RoleName) %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField headerstyle-Width="140px" HeaderText="<%$Resources:Base,Note %>">
            <ItemStyle Width="120px" Wrap="False" />
            <HeaderStyle HorizontalAlign="Left" />
            <ItemTemplate>
                <%# DataBinder.Eval( Container.DataItem,SysRoles.FIELD_Note) %>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False" HeaderText="<%$Resources:Base,SetRoleFuncs %>">
            <ItemStyle Wrap="False" />
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="false" CommandArgument="<%# Container.DisplayIndex %>"
                    CommandName="EditRole" Text="<%$Resources:Base,Set %>" ToolTip="Click Set to Set Role Access Functions!"></asp:LinkButton>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
    <RowStyle CssClass="GridViewRowStyle" />
    <EditRowStyle CssClass="GridViewEditRowStyle" />
    <SelectedRowStyle CssClass="GridViewSelectedRowStyle" />
    <PagerStyle CssClass="GridViewPagerStyle" />
    <HeaderStyle CssClass="GridViewHeaderStyle" />
    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
</asp:GridView>
